import React, { Component } from 'react';
import { AlreadyBuyBox } from '../AlreadyBuy/style'
import { withRouter } from 'react-router-dom'


@withRouter
class index extends Component {
  render() {
    return (
      <AlreadyBuyBox>
        <div className="top">
          <ul>
            <li onClick={() => {
              this.props.history.push('/alreadyBuy')
            }}><a >全部</a></li>
            <li onClick={() => {
              this.props.history.push('/small')
            }}><a >微课</a></li>
            <li onClick={() => {
              this.props.history.push('/series')
            }}><a >系列课</a></li>
            <li onClick={() => {
              this.props.history.push('/cultivate')
            }}><a >培训课</a></li>
            <li onClick={() => {
              this.props.history.push('/search')
            }}><a >搜索</a></li>
          </ul>
        </div>
        <div className="mainList">
          <div className="main">
            <div className="left"></div>
            <div className="right">
              <h4>分享会:国资上市公司并购重组相关问题研究</h4>
              <p>菅菅某省税收业务领军人才</p>
              <p>时长:24分钟</p>
            </div>
          </div>
          <p className="date">2018-03-07<span>12人点赞</span></p>
        </div>



        <div className="mainList">
          <div className="main1">
            <div className="left1"></div>
            <div className="right1">
              <h4>分享会:股权激励的理念、实操与案例分析</h4>
              <p>分享会:股权激励的理念、实操与案例分析</p>
              <p>时长:29分钟</p>
            </div>
          </div>
          <p className="date">2018-02-12<span>41人点赞</span></p>
        </div>
        {/* <Main /> */}
      </AlreadyBuyBox>
    );
  }
}

export default index;
